import { RouteRecordRaw } from "vue-router";
// 首页模块
const router: Array<RouteRecordRaw> = [
    {
        path: "/account",
        name: "account",
        redirect: "/account/index",
        component: () => import("@/layout/accountIndex.vue"),
        meta: {
            title: "账号管理",
        },
        children: [

    


            /**
             * 头顶首页 / 订单管理
             */
            {
                path: "/account/index",
                component: () => import("@/views/Account/index.vue"),
                meta: {
                    title: "账号管理",
                }
            },
            /* */


            /**
             * 暂存订单
             */
              {
                path: "/account/storage/index",
                component: () => import("@/views/Account/Storage/index.vue"),
                meta: {
                    title: "账号管理",
                }
            },
            /* */



            /**
             *  售后管理 
             */
            {
                path: "/account/after_sale/index",
                component: () => import("@/views/Account/AfterSale/index.vue"),
                meta: {
                    title: "账号管理",
                }
            },
            /* */
            /**
             *  我的余额 
             */
            {
                path: "/account/mine_balance/index",
                component: () => import("@/views/Account/MineBalance/index.vue"),
                meta: {
                    title: "账号管理",
                }
            },
            /* */
            /**
            *  我的返利
            */
            {
                path: "/account/rebate/index",
                component: () => import("@/views/Account/Rebate/index.vue"),
                meta: {
                    title: "账号管理",
                }
            },
            /* */

            /**
             *  我的返利 明细
             */
            {
                path: "/account/rebate/detail/index",
                component: () => import("@/views/Account/Rebate/Detail/index.vue"),
                meta: {
                    title: "账号管理",
                }
            },
            /* */

            /**
             *   厂家电子现金
             */
            {
                path: "/account/rebate/factory_cash/index",
                component: () => import("@/views/Account/FactoryCash/index.vue"),
                meta: {
                    title: "账号管理",
                }
            },
            /* */

            /**
             *   厂家优惠券
             */
            {
                path: "/account/coupon/index",
                component: () => import("@/views/Account/Coupon/index.vue"),
                meta: {
                    title: "账号管理",
                }
            },
            /* */


            /**
            *   分销管理
            */
            {
                path: "/account/distribution/index",
                component: () => import("@/views/Account/Rebate/index.vue"),
                meta: {
                    title: "账号管理",
                }
            },
            /* */

            /**
            *   发票管理
            */
            {
                path: "/account/invoice/index",
                component: () => import("@/views/Account/Invoice/index.vue"),
                meta: {
                    title: "账号管理",
                }
            },
            /* */

            /**
            *   客户尺码
            */
            {
                path: "/account/customer/index",
                component: () => import("@/views/Account/Customer/index.vue"),
                meta: {
                    title: "账号管理",
                }
            },
            /* */

           
            /**
            *   收藏
            */
            {
                path: "/account/collect",
                redirect: "/account/collect/goods/index",
                component: () => import("@/views/Account/Collect/index.vue"),
                meta: {
                    title: "账号管理",
                },
                children: [
                    /**
                      *   收藏商品
                      */
                    {
                        path: "/account/collect/goods/index",
                        component: () => import("@/views/Account/Collect/Goods/index.vue"),
                        meta: {
                            title: "账号管理",
                        },
                    },
                    {
                        path: "/account/collect/factory/index",
                        component: () => import("@/views/Account/Collect/Factory/index.vue"),
                        meta: {
                            title: "账号管理",
                        },
                    }

                    /* */
                ]
            },
            /* */


            /**
             *   足迹
             */
            {
                path: "/account/foot",
                redirect: "/account/foot/goods/index",
                component: () => import("@/views/Account/Foot/index.vue"),
                meta: {
                    title: "账号管理",
                },
                children: [
                    /**
                      *   收藏商品
                      */
                    {
                        path: "/account/foot/goods/index",
                        component: () => import("@/views/Account/Foot/Goods/index.vue"),
                        meta: {
                            title: "账号管理",
                        },
                    },
                    {
                        path: "/account/foot/factory/index",
                        component: () => import("@/views/Account/Foot/Factory/index.vue"),
                        meta: {
                            title: "账号管理",
                        },
                    }

                    /* */
                ]
            },
            /* */

            /**
             *    基础信息
             */
            {
                path: "/account/basic/index",
                component: () => import("@/views/Account/Basic/index.vue"),
                meta: {
                    title: "账号管理",
                }
            },
            /* */



            /**
             *    支付密码
             */
            {
                path: "/account/pay_pass/index",
                component: () => import("@/views/Account/PayPass/index.vue"),
                meta: {
                    title: "账号管理",
                }
            },
            /* */


            /**
            *    账号绑定
            */
            {
                path: "/account/bind/index",
                component: () => import("@/views/Account/Bind/index.vue"),
                meta: {
                    title: "账号管理",
                }
            },
            /* */

            /**
             *    职员管理
             */
            {
                path: "/account/staff/index",
                component: () => import("@/views/Account/Staff/index.vue"),
                meta: {
                    title: "账号管理",
                }
            },
            /* */



        ]
    },

];

export default router;